<!-- 患者信息 -->
<div xmlns:th="http://www.thymeleaf.org" th:fragment="patientInfo (readonly)">
	<div class="box box-default">
		<div class="box-header with-border">
			<h6 class="box-title">患者信息 </h6>
		</div>
		<!-- 患者信息表单区域 -->
		<div id="patientInfoFormDiv" th:if="${readonly=='false'}">
			<form id="patientInfoForm" class="form-horizontal">
				<div class="box-body">
					<div class="form-group">
						<label for="patient_code" class="col-md-2 control-label">患者编号<span
							class="colorred">*</span>：
						</label>
						<div class="col-md-4">
							<input id="patient_code" class="form-control" type="text"
						name="patient_code" bindname="patient_code" btvd-type="required"
						btvd-class='btvdclass' maxlength="50" placeholder="患者编号..." />
						</div>
						<label for="patient_name" class="col-md-2 control-label">患者姓名<span
							class="colorred">*</span>：
						</label>
						<div class="col-md-4">
							<input id="patient_name" class="form-control" type="text"
						name="patient_name" bindname="patient_name" btvd-type="required"
						btvd-class='btvdclass' maxlength="50" placeholder="患者姓名..." />
						</div>
					</div>
					<div class="form-group">
						<label for="visiting_type" class="col-md-2 control-label">就诊类型<span
							class="colorred">*</span>：
						</label>
						<div class="col-md-4">
							<select id="visiting_type" name="visiting_type" bindname="visiting_type"></select>
						</div>
						<label for="visiting_department" class="col-md-2 control-label">就诊科室<span
							class="colorred">*</span>：
						</label>
						<div class="col-md-4">
							<input id="visiting_department" class="form-control" type="text"
						name="visiting_department" bindname="visiting_department" btvd-type="required"
						btvd-class='btvdclass' maxlength="50" placeholder="就诊科室..." />
						</div>
					</div>
					<div class="form-group">
						<label for="birth" class="col-md-2 control-label">出生日期<span
							class="colorred">*</span>：
						</label>
						<div class="col-md-4">
							<input id="birth" class="form-control date form_date" type="text"
						name="birth" bindname="birth" btvd-type="required" btvd-class='btvdclass'/>
						</div>
						<label for="admission_time" class="col-md-2 control-label">入院时间<span
							class="colorred">*</span>：
						</label>
						<div class="col-md-4">
							<input id="admission_time" class="form-control date form_date" type="text"
						name="admission_time" bindname="admission_time" />
						</div>
					</div>
					<div class="form-group">
						<label for="sex" class="col-md-2 control-label">性别<span
							class="colorred">*</span>：
						</label>
						<div class="col-md-4">
							<select id="sex" name="sex" bindname="sex"></select>
						</div>
						<label for="age" class="col-md-2 control-label">年龄<span
							class="colorred">*</span>：
						</label>
						<div class="col-md-2">
							<input id="age" class="form-control" type="text"
						name="age" bindname="age" btvd-type="required"
						btvd-class='btvdclass' maxlength="3" placeholder="" />
						</div>
						<div class="col-md-2">
							<select id="ageunit" name="ageunit" bindname="ageunit"></select>
						</div>
					</div>
					<div class="form-group">
						<label for="idnumber" class="col-md-2 control-label">身份证号<span
							class="colorred">*</span>：
						</label>
						<div class="col-md-4">
							<input id="idnumber" class="form-control" type="text"
						name="idnumber" bindname="idnumber" btvd-type="idNumber"
						btvd-class='btvdclass' maxlength="18" placeholder="身份证号..." />
						</div>
						<label for="marital_status" class="col-md-2 control-label">婚姻状况<span
							class="colorred">*</span>：
						</label>
						<div class="col-md-4">
							<select id="marital_status" name="marital_status" bindname="marital_status"></select>
						</div>
					</div>
					<div class="form-group">
						<label for="height" class="col-md-2 control-label">身高(cm)：
						</label>
						<div class="col-md-4">
							<input id="height" class="form-control" type="text"
						name="height" bindname="height" maxlength="3" placeholder="身高..." />
						</div>
						<label for="weight" class="col-md-2 control-label">体重(kg)：
						</label>
						<div class="col-md-4">
							<input id="weight" class="form-control" type="text"
						name="weight" bindname="weight" maxlength="2" placeholder="体重..." />
						</div>
					</div>
					<div class="form-group">
						<label for="nationality" class="col-md-2 control-label">国籍：
						</label>
						<div class="col-md-4">
							<select id="nationality" name="nationality" bindname="nationality"></select>
						</div>
						<label for="nation" class="col-md-2 control-label">民族：
						</label>
						<div class="col-md-4">
							<select id="nation" name="nation" bindname="nation"></select>
						</div>
					</div>
					<div class="form-group">
						<label for="medical_type" class="col-md-2 control-label">医保类型：
						</label>
						<div class="col-md-4">
							<select id="medical_type" name="medical_type" bindname="medical_type"></select>
						</div>
						<label for="medical_card" class="col-md-2 control-label">医保卡号：
						</label>
						<div class="col-md-4">
							<input id="medical_card" class="form-control" type="text"
						name="medical_card" bindname="medical_card"  maxlength="50" placeholder="医保卡号" />
						</div>
					</div>
					<div class="form-group">
						<label for="phone" class="col-md-2 control-label">联系电话<span
							class="colorred">*</span>：
						</label>
						<div class="col-md-4">
							<input id="phone" class="form-control" type="text"
						name="phone" bindname="phone" btvd-type="required"
						btvd-class='btvdclass' maxlength="11" placeholder="联系电话" />
						</div>
						<label for="occupation" class="col-md-2 control-label">职业：
						</label>
						<div class="col-md-4">
							<input id="occupation" class="form-control" type="text"
						name="occupation" bindname="occupation"  maxlength="50" placeholder="职业" />
						</div>
					</div>
					<div class="form-group">
						<label for="addr" class="col-md-2 control-label">家庭住址：
						</label>
						<div class="col-md-10">
							<textarea id="addr" class="form-control" rows="4"
							name="addr" bindname="addr" placeholder="家庭住址 ..."></textarea>
						</div>
					</div>
				</div>
			</form>
		</div>
		<!-- 患者信息显示区域（只读） -->
		<div th:if="${readonly=='true'}">
			<button id="showPatientView" type="button" class="btn btn-success pull-right mr30">患者一体化视图</button>
			<table id="patientInfo_table" width="100%" class="table table-bordered table-striped">
					<tbody>
					<tr>
						<td class="table_td">患者编号：</td>
						<td colspan="4"><span bindname="patient_code"></span></td>
					</tr>
					<tr>
						<td class="table_td">患者姓名：</td>
						<td colspan="4"><span bindname="patient_name"></span></td>
					</tr>
					<tr>
						<td class="table_td">就诊类型：</td>
						<td colspan="4"><span bindname="visiting_type"></span></td>
					</tr>
					<tr>
						<td class="table_td">就诊科室：</td>
						<td colspan="4"><span bindname="visiting_department"></span></td>
					</tr>
					<tr>
						<td class="table_td">性别：</td>
						<td colspan="4"><span bindname="sex"></span></td>
					</tr>
					<tr>
						<td class="table_td">年龄：</td>
						<td colspan="3"><span bindname="age"></span>&nbsp;&nbsp;<span bindname="ageunit"></span></td>
					</tr>
					<tr>
						<td class="table_td">身份证号：</td>
						<td colspan="4"><span bindname="idnumber"></span></td>
					</tr>
					<tr>
						<td class="table_td">出生日期：</td>
						<td colspan="3"><span bindname="birth"></span></span></td>
					</tr>
					<tr>
						<td class="table_td">入院时间：</td>
						<td colspan="3"><span bindname="admission_time"></span></span></td>
					</tr>
					<tr>
						<td class="table_td">身份证号：</td>
						<td colspan="3"><span bindname="idnumber"></span></span></td>
					</tr>
					<tr>
						<td class="table_td">婚姻状况：</td>
						<td colspan="3"><span bindname="marital_status"></span></span></td>
					</tr>
					<tr>
						<td class="table_td">身高(cm)：</td>
						<td colspan="3"><span bindname="height"></span></span></td>
					</tr>
					<tr>
						<td class="table_td">体重(kg)：</td>
						<td colspan="3"><span bindname="weight"></span></span></td>
					</tr>
					<tr>
						<td class="table_td">国籍：</td>
						<td colspan="3"><span bindname="nationality"></span></span></td>
					</tr>
					<tr>
						<td class="table_td">民族：</td>
						<td colspan="3"><span bindname="nation"></span></span></td>
					</tr>
					<tr>
						<td class="table_td">医保类型：</td>
						<td colspan="3"><span bindname="medical_type"></span></span></td>
					</tr>
					<tr>
						<td class="table_td">医保卡号：</td>
						<td colspan="3"><span bindname="medical_card"></span></span></td>
					</tr>
					<tr>
						<td class="table_td">联系电话：</td>
						<td colspan="3"><span bindname="phone"></span></span></td>
					</tr>
					<tr>
						<td class="table_td">职业：</td>
						<td colspan="3"><span bindname="occupation"></span></span></td>
					</tr>
					<tr>
						<td class="table_td">家庭住址：</td>
						<td colspan="3"><span bindname="addr"></span></span></td>
					</tr>
				</tbody>
			</table>
		</div>
	</div>
	<script th:if="${projectModel=='dev'}" th:src="@{/static/js/business/consultation/common/patientInfo.js(v=${#dates.createNow().getTime()})}"></script>
	<script th:if="${projectModel=='product'}" th:src="@{/static/js/business/consultation/common/patientInfo.js}"></script>
</div>
